]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add missing semicolons noted by jslint
authorDan Winship <danw@gnome.org>
Mon, 15 Mar 2010 13:50:05 +0000 (09:50 -0400)
committerDan Winship <danw@gnome.org>
Mon, 15 Mar 2010 13:50:05 +0000 (09:50 -0400)
Taken from a patch by Lex Hider on the mailing list

16 files changed:
js/ui/altTab.js
js/ui/appDisplay.js
js/ui/calendar.js
js/ui/dash.js
js/ui/genericDisplay.js
js/ui/lookingGlass.js
js/ui/notificationDaemon.js
js/ui/panel.js
js/ui/placeDisplay.js
js/ui/runDialog.js
js/ui/search.js
js/ui/widget.js
js/ui/windowAttentionHandler.js
js/ui/workspace.js
js/ui/workspaceSwitcherPopup.js
js/ui/workspacesView.js

index 865e1f0eb45a01c6696079859a1c40aae61e4f5f..7c8eb042f6c92a16107cc10985c8f61db2a79838 100644 (file)
@@ -455,7 +455,7 @@ SwitcherList.prototype = {
     },
 
     addSeparator: function () {
-        let box = new St.Bin({ style_class: 'separator' })
+        let box = new St.Bin({ style_class: 'separator' });
         this._separator = box;
         this._list.add_actor(box);
     },
@@ -599,7 +599,7 @@ AppIcon.prototype = {
         this._label = new St.Label({ text: this.app.get_name() });
         this.actor.add(this._label, { x_fill: false });
     }
-}
+};
 
 function AppSwitcher(apps) {
     this._init(apps);
index fb41bb4ad7d33369964f2a3d06d82b0d4fb51c0f..b980460b750c5b8b17977749da4b2b3ec86efee7 100644 (file)
@@ -259,9 +259,9 @@ AppSearchResultDisplay.prototype = {
             return;
         let children = this._container.get_children();
         let targetActor = children[this.selectionIndex];
-        this.provider.activateResult(targetActor._delegate.app.get_id())
+        this.provider.activateResult(targetActor._delegate.app.get_id());
     }
-}
+};
 
 function BaseAppSearchProvider() {
     this._init();
@@ -330,7 +330,7 @@ AppSearchProvider.prototype = {
     expandSearch: function(terms) {
         log("TODO expand search");
     }
-}
+};
 
 function PrefsSearchProvider() {
     this._init();
@@ -356,7 +356,7 @@ PrefsSearchProvider.prototype = {
         controlCenter.launch();
         Main.overview.hide();
     }
-}
+};
 
 function AppIcon(app) {
     this._init(app);
@@ -382,7 +382,7 @@ AppIcon.prototype = {
         this._name.clutter_text.line_alignment = Pango.Alignment.CENTER;
         box.add_actor(this._name);
     }
-}
+};
 
 function AppWellIcon(app) {
     this._init(app);
@@ -588,7 +588,7 @@ AppWellIcon.prototype = {
     getDragActorSource: function() {
         return this._icon.icon;
     }
-}
+};
 Signals.addSignalMethods(AppWellIcon.prototype);
 
 function AppIconMenu(source) {
@@ -1013,7 +1013,7 @@ WellGrid.prototype = {
     addItem: function(actor) {
         this._grid.add_actor(actor);
     }
-}
+};
 
 function AppWell() {
     this._init();
index 68ec6a9d868339b63d1d917e31114fb4017ec68b..ec4689c2f47504652dd502e5c7acccfcda66da17 100644 (file)
@@ -16,7 +16,7 @@ function _sameDay(dateA, dateB) {
 
 function Calendar() {
     this._init();
-};
+}
 
 Calendar.prototype = {
     _init: function() {
index d0e32c6681ad4b3b0dd5c99f3c7082476f498b08..cb80d4a365e83a167e3411a24ec26625a8ba742a 100644 (file)
@@ -112,7 +112,7 @@ Pane.prototype = {
         else
             this.open();
     }
-}
+};
 Signals.addSignalMethods(Pane.prototype);
 
 function ResultArea(displayType, flags) {
@@ -131,7 +131,7 @@ ResultArea.prototype = {
         this.resultsContainer.append(this.display.actor, Big.BoxPackFlags.EXPAND);
         this.display.load();
     }
-}
+};
 
 // Utility function shared between ResultPane and the DocDisplay in the main dash.
 // Connects to the detail signal of the display, and on-demand creates a new
@@ -187,7 +187,7 @@ ResultPane.prototype = {
         }));
         return resultArea.display;
     }
-}
+};
 
 function SearchEntry() {
     this._init();
@@ -390,7 +390,7 @@ SearchResult.prototype = {
         else
             this.provider.activateResult(this.metaInfo.id);
     }
-}
+};
 
 function OverflowSearchResults(provider) {
     this._init(provider);
@@ -440,7 +440,7 @@ OverflowSearchResults.prototype = {
         let targetActor = children[this.selectionIndex];
         targetActor._delegate.activate();
     }
-}
+};
 
 function SearchResults(searchSystem) {
     this._init(searchSystem);
@@ -607,7 +607,7 @@ SearchResults.prototype = {
         resultDisplay.activateSelected();
         Main.overview.hide();
     }
-}
+};
 
 function MoreLink() {
     this._init();
@@ -641,7 +641,7 @@ MoreLink.prototype = {
                 this._expander.style_class = 'more-link-expander open';
         }));
     }
-}
+};
 
 Signals.addSignalMethods(MoreLink.prototype);
 
@@ -655,7 +655,7 @@ BackLink.prototype = {
                                       reactive: true });
         this.actor.set_child(new St.Bin({ style_class: "section-header-back-image" }));
     }
-}
+};
 
 function SectionHeader(title, suppressBrowse) {
     this._init(title, suppressBrowse);
@@ -726,7 +726,7 @@ SectionHeader.prototype = {
             this.countText.text = countText;
         }
     }
-}
+};
 
 Signals.addSignalMethods(SectionHeader.prototype);
 
@@ -750,7 +750,7 @@ SearchSectionHeader.prototype = {
 
         this.actor.connect('clicked', onClick);
     }
-}
+};
 
 function Section(titleString, suppressBrowse) {
     this._init(titleString, suppressBrowse);
@@ -766,7 +766,7 @@ Section.prototype = {
                                            vertical: true });
         this.actor.add(this.content);
     }
-}
+};
 
 function Dash() {
     this._init();
index b2207408a26575382c6dc59c2b6e156f9fc3cd8d..f275bf253a24f2eabe4737d94237f32eb0f01cd7 100644 (file)
@@ -240,7 +240,7 @@ Signals.addSignalMethods(GenericDisplayItem.prototype);
 
 const GenericDisplayFlags = {
     DISABLE_VSCROLLING: 1 << 0
-}
+};
 
 /* This is a virtual class that represents a display containing a collection of items
  * that can be filtered with a search string.
@@ -698,7 +698,7 @@ GenericDisplay.prototype = {
 
         this._selectedIndex = index;
         if (index < 0)
-            return
+            return;
 
         // Mark the new item as selected and create its details pane
         let item = this._findDisplayedByIndex(index);
index 08d191bfdafa2a9603491e23b9594843413bef08..c5d5051c5b0a222b3665ad7ae5b1846ab7fe2c92 100644 (file)
@@ -136,7 +136,7 @@ Notebook.prototype = {
         let vAdjust = tabData.scrollView.vscroll.adjustment;
         vAdjust.value = vAdjust.upper - vAdjust.page_size;
     }
-}
+};
 Signals.addSignalMethods(Notebook.prototype);
 
 function Result(command, o, index) {
@@ -164,7 +164,7 @@ Result.prototype = {
         padBin.add_actor(line);
         this.actor.append(padBin, Big.BoxPackFlags.NONE);
     }
-}
+};
 
 function ActorHierarchy() {
     this._init();
@@ -215,7 +215,7 @@ ActorHierarchy.prototype = {
         let link = children[idx];
         this.emit('selection', actor);
     }
-}
+};
 Signals.addSignalMethods(ActorHierarchy.prototype);
 
 function PropertyInspector() {
@@ -249,7 +249,7 @@ PropertyInspector.prototype = {
             this.actor.add_actor(propDisplay);
         }
     }
-}
+};
 
 function Inspector() {
     this._init();
@@ -311,7 +311,7 @@ Inspector.prototype = {
         }));
         Clutter.grab_pointer(eventHandler);
     }
-}
+};
 
 Signals.addSignalMethods(Inspector.prototype);
 
@@ -329,13 +329,13 @@ ErrorLog.prototype = {
     },
 
     _formatTime: function(d){
-        function pad(n) { return n < 10 ? '0' + n : n };
+        function pad(n) { return n < 10 ? '0' + n : n; }
         return d.getUTCFullYear()+'-'
             + pad(d.getUTCMonth()+1)+'-'
             + pad(d.getUTCDate())+'T'
             + pad(d.getUTCHours())+':'
             + pad(d.getUTCMinutes())+':'
-            + pad(d.getUTCSeconds())+'Z'
+            + pad(d.getUTCSeconds())+'Z';
     },
 
     _renderText: function() {
@@ -349,7 +349,7 @@ ErrorLog.prototype = {
         }
         this.text.text = text;
     }
-}
+};
 
 function Extensions() {
     this._init();
index c3cb270777078e6b7f28a7dc3bcfa06a1a86d0e9..367152ee1c9f0d19d09574375169f1c8d3868f45 100644 (file)
@@ -21,17 +21,17 @@ const BusIface = {
     methods: [{ name: 'GetConnectionUnixProcessID',
                 inSignature: 's',
                 outSignature: 'i' }]
-}
+};
 
 const Bus = function () {
     this._init();
-}
+};
 
 Bus.prototype = {
      _init: function() {
          DBus.session.proxifyObject(this, 'org.freedesktop.DBus', '/org/freedesktop/DBus');
      }
-}
+};
 
 DBus.proxifyPrototype(Bus.prototype, BusIface);
 
index 7046bec84b23c7b5e4b021793c29e016335c1994..6915bc5bde42dd78100f3ada95ea0b8385a8978e 100644 (file)
@@ -39,7 +39,7 @@ const TRAY_BORDER_WIDTH = 0;
 
 const HOT_CORNER_ACTIVATION_TIMEOUT = 0.5;
 
-const STANDARD_TRAY_ICON_ORDER = ['keyboard', 'volume', 'bluetooth', 'network', 'battery']
+const STANDARD_TRAY_ICON_ORDER = ['keyboard', 'volume', 'bluetooth', 'network', 'battery'];
 const STANDARD_TRAY_ICON_IMPLEMENTATIONS = {
     'bluetooth-applet': 'bluetooth',
     'gnome-volume-control-applet': 'volume',
@@ -130,7 +130,7 @@ TextShadower.prototype = {
             child.allocate(childBox, flags);
         }
     }
-}
+};
 
 /**
  * AppPanelMenu:
@@ -287,7 +287,7 @@ AppPanelMenu.prototype = {
 
         this.emit('changed');
     }
-}
+};
 
 Signals.addSignalMethods(AppPanelMenu.prototype);
 
index da7fe035667b1c7a4f9e4f622c7af10ddd81016b..9e3ed87b03e0ece242a9c14b81a890336cfd6459 100644 (file)
@@ -59,7 +59,7 @@ PlaceInfo.prototype = {
     isRemovable: function() {
         return false;
     }
-}
+};
 
 function PlaceDeviceInfo(mount) {
     this._init(mount);
@@ -99,7 +99,7 @@ PlaceDeviceInfo.prototype = {
     _removeFinish: function(o, res, data) {
         this._mount.unmount_finish(res);
     }
-}
+};
 
 
 function PlacesManager() {
@@ -581,4 +581,4 @@ PlaceSearchProvider.prototype = {
         let places = previousResults.map(function (id) { return Main.placesManager.lookupPlaceById(id); });
         return this._searchPlaces(places, terms);
     }
-}
+};
index e1c26eb8c334315f4d80eea59d870b17c0c874ca..7808780be75a2029ac318e2bea099ff87943c4db 100644 (file)
@@ -168,7 +168,7 @@ CommandCompleter.prototype = {
 
 function RunDialog() {
     this._init();
-};
+}
 
 RunDialog.prototype = {
     _init : function() {
index c25e02ded51ae570335e78373add8e9a04bc8da9..bacf33612b6f2ade79738357fe3545325deb58cf 100644 (file)
@@ -207,7 +207,7 @@ SearchProvider.prototype = {
     expandSearch: function(terms) {
         throw new Error("not implemented");
     }
-}
+};
 Signals.addSignalMethods(SearchProvider.prototype);
 
 function SearchSystem() {
@@ -275,5 +275,5 @@ SearchSystem.prototype = {
 
         return results;
     }
-}
+};
 Signals.addSignalMethods(SearchSystem.prototype);
index d6fe8fe6d2a398d903d10bba6a2dd09566597382..1cb740f728c70a7a8a49ecf660c89b37882c2ecf 100644 (file)
@@ -302,7 +302,7 @@ AppsWidgetInfo.prototype = {
     launch : function() {
         this._info.launch();
     }
-}
+};
 
 function AppsWidget() {
     this._init.apply(this, arguments);
index 8e0228b3d38c4e477dddc89106a3c17d5411c449..c4aba46ffe334776d5ed4d5596428e2e5113bc7d 100644 (file)
@@ -77,12 +77,12 @@ WindowAttentionHandler.prototype = {
         window.connect('notify::title', Lang.bind(this, function(win) {
                                                             notification.update(this._getTitle(app, win), this._getBanner(app, win), false);
                                                         }));
-        window.connect('notify::demands-attention', Lang.bind(this, function() { source.destroy() }));
-        window.connect('focus', Lang.bind(this, function() { source.destroy() }));
-        window.connect('unmanaged', Lang.bind(this, function() { source.destroy() }));
+        window.connect('notify::demands-attention', Lang.bind(this, function() { source.destroy(); }));
+        window.connect('focus', Lang.bind(this, function() { source.destroy(); }));
+        window.connect('unmanaged', Lang.bind(this, function() { source.destroy(); }));
 
     }
-}
+};
 
 function Source(sourceId, app, window) {
     this._init(sourceId, app, window);
@@ -106,4 +106,4 @@ Source.prototype = {
         MessageTray.Source.prototype.clicked.call(this);
     }
 
-}
+};
index 4d9bf30c4c3f66e9316b219803333b7d0fb2b7a9..f1e73699b372e4a87b080a46e837c8a54c984e8f 100644 (file)
@@ -1429,7 +1429,7 @@ Workspace.prototype = {
 
     // Tests if @win should be shown in the Overview
     _isOverviewWindow : function (win) {
-        let tracker = Shell.WindowTracker.get_default()
+        let tracker = Shell.WindowTracker.get_default();
         return tracker.is_window_interesting(win.get_meta_window());
     },
 
index 11ceebbf04ee1878db83f9f932e5773bd779f55b..274c7dd1ccdc8074070d25b8db56abb1e12ff9a8 100644 (file)
@@ -92,7 +92,7 @@ WorkspaceSwitcherPopup.prototype = {
         Tweener.addTween(this._container, { opacity: 0.0,
                                             time: ANIMATION_TIME,
                                             transition: "easeOutQuad",
-                                            onComplete: function() { this.actor.hide() },
+                                            onComplete: function() { this.actor.hide(); },
                                             onCompleteScope: this
                                            });
     }
index f87211cedf4c547613233489d3eda921850020e6..64d444d1a38938c7e6262b5ae7fd129974468265 100644 (file)
@@ -262,7 +262,7 @@ GenericWorkspacesView.prototype = {
     _addWorkspaceActor: function() {
         throw new Error("Not implemented");
     }
-}
+};
 
 function MosaicView(width, height, x, y, animate) {
     this._init(width, height, x, y, animate);